/**
 * Copyright ©2012-2018 HopeHaiyang Corporation, All Rights Reserved
 * http://www.wuhanhope.com
 */
package hope.platform.data.domain;

import hope.platform.data.domain.entity.RelationPeople;
import hope.platform.data.domain.entity.SoftConfig;
import hope.platform.data.domain.entity.VideoInfo;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * class info
 *
 * @author hujia
 *         Create at 2018/7/10 15:23
 */
@Document
@Data
@NoArgsConstructor
public class SiteInfo implements Serializable {
    private final static long serialVersionUID = 1L;

    @Id
    private String id;

    @Indexed(unique = true)
    private String serialNumber;

    private String siteName;

    private Double longitude;

    private Double latitude;

    private Double altitude;

    private String description;

    private Date constructionTime;

    private String siteType;

    //站点组，用于区别哪些用户角色可以观看哪些站点的。
    private String siteArray;

    private String softwareVersion;

    private Integer frequencyOfShip;

    private Date lastVisitTime;

    private String siteStatus;

    private List<String> insidePicture;

    private List<String> outsidePicture;

    private VideoInfo videoInfo;

    //private Map<String, DataAuthority> dataConfig;

    private Map<String, RelationPeople> peopleRelation;

    private SoftConfig softConfig;

    private Date gmtCreate;

    private Date gmtModified;

}
